import { EChartsInstance, Opts } from "echarts-for-react/lib/types";
import { BaseChartProps } from "./Base";
import { LineChartProps, LineChartConfig } from "./Line";
import { PieChartProps, PieChartConfig } from "./Pie";

interface ChartProps {
  height?: number | string;
  width?: number | string;
  style?: React.CSSProperties;
  className?: string;
  loading?: boolean;
  loadingOption?: any;
  theme?: string;
  onEvents?: Record<string, Function>;
  onReady?: (instance: EChartsInstance) => void;
  opts?: Opts;
}

export type {
  ChartProps,
  BaseChartProps,
  LineChartProps,
  LineChartConfig,
  PieChartProps,
  PieChartConfig,
};
